import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '../views/Login.vue'

import Adm from '../views/adm/Adm.vue'
   import AdmClz from'../views/adm/clz/Clz.vue'
   import AdmCourse from "../views/adm/course/Course.vue"
   import AdmStu from "../views/adm/stu/Show.vue"
   import AdmTea from "../views/adm/tea/Show.vue"
   import AdmTask from "../views/adm/task/Show.vue"
	
import Stu from "../views/stu/Stu.vue"
   import StuMark from '../views/stu/Mark.vue'
   import StuCourse from '../views/stu/Course.vue'
   import StuUpdeate from '../views/stu/Updeate.vue'
import Add from '../views/adm/stu/add.vue'
import Tea from "../views/tea/Tea.vue"
   import TeaUpdeate from '../views/tea/Updeate.vue'
   import TeaDoMark from '../views/tea/DoMark.vue'
   import TeaGoMark from '../views/tea/GoMark.vue'



const routes = [
	{	path:"/login",
		component:Login},
	{	path:"/adm",
			component: Adm,
			children:[
				{path:"clz",  
				  component:AdmClz
				},
				{path:"course",  
				  component:AdmCourse
				},
				{path:"stu", 
				  component:AdmStu
				},
				{path:"add",
				  component:Add
				},
				{path:"tea", 
				  component:AdmTea
				},
				{path:"task",
				  component:AdmTask
				},
			
			]},
	{ path:"/stu",
		component:Stu,
		children:[
			{path:"updeate",
			component:StuUpdeate},
			{path:"Mark",
			component:StuMark},
			{path:"course",
			component:StuCourse}
		]},
	{	path:"/tea",
		component:Tea,
		children:[
			{path:"updeate",
			component:TeaUpdeate},
			{path:"DoMark",
			component:TeaDoMark},
			{path:"GoMark",
			component:TeaGoMark},
			]
			}
]




const router = createRouter({
	history: createWebHashHistory(import.meta.env.BASE_URL),
	routes
})

export default router